package com.contentteam.util;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class TimeCalc {
	
	public static Date convert (final String time) {
		final SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss,SSS");
		
		try {
			return sdf.parse( time );
		} catch (final ParseException e) {
			throw new RuntimeException( "Couldn't parse time [= " + time + "] from string.", e);
		}
	}
}
